Optimal. Leaf size=24 \[ \frac {2 \sqrt {7} E\left (\frac {1}{2} (c+\pi +d x)|\frac {8}{7}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {2733}
\begin {gather*} \frac {2 \sqrt {7} E\left (\frac {1}{2} (c+d x+\pi )|\frac {8}{7}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2733
Rubi steps
\begin {align*} \int \sqrt {3-4 \cos (c+d x)} \, dx &=\frac {2 \sqrt {7} E\left (\frac {1}{2} (c+\pi +d x)|\frac {8}{7}\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 44, normalized size = 1.83 \begin {gather*} -\frac {2 \sqrt {-3+4 \cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |8\right )}{d \sqrt {3-4 \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(137\) vs.
\(2(47)=94\).
time = 0.28, size = 138, normalized size = 5.75
method | result | size |
default | \(-\frac {2 \sqrt {-\left (8 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-7\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {56 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-7}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 \sqrt {14}}{7}\right )}{\sqrt {8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-8 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+7}\, d}\) | \(138\) |
risch | \(-\frac {2 i \sqrt {-\left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}-3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{-i \left (d x +c \right )}}}{d}+\frac {i \left (\frac {6 \left (-\frac {3}{4}+\frac {i \sqrt {7}}{4}\right ) \sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}-\frac {3}{4}+\frac {i \sqrt {7}}{4}}{-\frac {3}{4}+\frac {i \sqrt {7}}{4}}}\, \sqrt {14}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}\, \sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}}{\frac {3}{4}-\frac {i \sqrt {7}}{4}}}\, \EllipticF \left (\sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}-\frac {3}{4}+\frac {i \sqrt {7}}{4}}{-\frac {3}{4}+\frac {i \sqrt {7}}{4}}}, \frac {\sqrt {14}\, \sqrt {i \left (\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}}{7}\right )}{7 \sqrt {-2 \,{\mathrm e}^{3 i \left (d x +c \right )}+3 \,{\mathrm e}^{2 i \left (d x +c \right )}-2 \,{\mathrm e}^{i \left (d x +c \right )}}}-\frac {4 \left (-2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}-2\right )}{\sqrt {\left (-2 \,{\mathrm e}^{2 i \left (d x +c \right )}+3 \,{\mathrm e}^{i \left (d x +c \right )}-2\right ) {\mathrm e}^{i \left (d x +c \right )}}}-\frac {8 \left (-\frac {3}{4}+\frac {i \sqrt {7}}{4}\right ) \sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}-\frac {3}{4}+\frac {i \sqrt {7}}{4}}{-\frac {3}{4}+\frac {i \sqrt {7}}{4}}}\, \sqrt {14}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}\, \sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}}{\frac {3}{4}-\frac {i \sqrt {7}}{4}}}\, \left (-\frac {i \sqrt {7}\, \EllipticE \left (\sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}-\frac {3}{4}+\frac {i \sqrt {7}}{4}}{-\frac {3}{4}+\frac {i \sqrt {7}}{4}}}, \frac {\sqrt {14}\, \sqrt {i \left (\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}}{7}\right )}{2}+\left (\frac {3}{4}+\frac {i \sqrt {7}}{4}\right ) \EllipticF \left (\sqrt {\frac {{\mathrm e}^{i \left (d x +c \right )}-\frac {3}{4}+\frac {i \sqrt {7}}{4}}{-\frac {3}{4}+\frac {i \sqrt {7}}{4}}}, \frac {\sqrt {14}\, \sqrt {i \left (\frac {3}{4}-\frac {i \sqrt {7}}{4}\right ) \sqrt {7}}}{7}\right )\right )}{7 \sqrt {-2 \,{\mathrm e}^{3 i \left (d x +c \right )}+3 \,{\mathrm e}^{2 i \left (d x +c \right )}-2 \,{\mathrm e}^{i \left (d x +c \right )}}}\right ) \sqrt {-\left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}-3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{-i \left (d x +c \right )}}\, \sqrt {-\left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}-3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right ) {\mathrm e}^{i \left (d x +c \right )}}}{d \left (2 \,{\mathrm e}^{2 i \left (d x +c \right )}-3 \,{\mathrm e}^{i \left (d x +c \right )}+2\right )}\) | \(662\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.11, size = 106, normalized size = 4.42 \begin {gather*} -\frac {\sqrt {2} {\rm weierstrassPInverse}\left (-1, -1, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right ) - \frac {1}{2}\right ) + \sqrt {2} {\rm weierstrassPInverse}\left (-1, -1, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right ) - \frac {1}{2}\right ) + 4 \, \sqrt {2} {\rm weierstrassZeta}\left (-1, -1, {\rm weierstrassPInverse}\left (-1, -1, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right ) - \frac {1}{2}\right )\right ) + 4 \, \sqrt {2} {\rm weierstrassZeta}\left (-1, -1, {\rm weierstrassPInverse}\left (-1, -1, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right ) - \frac {1}{2}\right )\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {3 - 4 \cos {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \sqrt {3-4\,\cos \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________